package com.wlanauth.domain.manage;

import java.util.Date;

import com.wlanauth.core.domain.Entity;
/**
 * 操作员
 * @author zz
 * @date 2012-5-10
 * @email charles.zz.life@gmail.com
 */
public class Operator extends Entity {

	private static final long serialVersionUID = 1L;
	
	private String id;
	/**
	 * 用户名
	 */
	private String username;
	/**
	 * 别名
	 */
	private String displayname;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 性别
	 */
	private String sexId;
	/**
	 * 生日
	 */
	private Date birth;
	/**
	 * 邮箱
	 */
	private String email;
	/**
	 * 联系电话
	 */
	private String contactPhone;
	/**
	 * 地址
	 */
	private String address;
	/**
	 * 备注
	 */
	private String description;
	/**
	 * 角色
	 */
	private Role role;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getDisplayname() {
		return displayname;
	}

	public void setDisplayname(String displayname) {
		this.displayname = displayname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}


	public Date getBirth() {
		return birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String desc) {
		this.description = desc;
	}
	
	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getRoleId() {
		return role == null?null:role.getId();
	}

	public String getSexId() {
		return sexId;
	}

	public void setSexId(String sexId) {
		this.sexId = sexId;
	}

	
}
